import * as PIXI from 'pixi.js'
import consume from './consume'
import atk from './atk'
import hp from './hp'
import name from './name'
import ability from './ability'
import abilityFontSize from './abilityFontSize'

export default async (): Promise<PIXI.Container<PIXI.ContainerChild>> => {
  const container = new PIXI.Container()
  const consumeContainer = await consume()
  const atkContainer = await atk()
  const hpContainer = await hp()
  const nameContainer = await name()
  const abilityContainer = await ability()
  const abilityFontSizeContainer = await abilityFontSize()
  container.addChild(consumeContainer)
  container.addChild(atkContainer)
  container.addChild(hpContainer)
  container.addChild(nameContainer)
  container.addChild(abilityContainer)
  container.addChild(abilityFontSizeContainer)
  return container
}
